package br.com.felix.fwt.svg;

import java.util.ArrayList;
import java.util.List;

public class SVGDefinitions implements SVG {

	private List<SVG> definitions;



	public SVGDefinitions() {
		definitions = new ArrayList<SVG>();
	}



	public void define(SVG element) {
		definitions.add(element);
	}



	@Override
	public void toSVG(SVGBuilder svgBuilder) {
		svgBuilder.createElement("defs").bodyWithChildren(definitions).endElement();
	}

}
